Fix the search bar example
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 Feb 2019 21:13:58 +0000 (16:13 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 19 Feb 2019 05:25:59 +0000 (00:25 -0500)
More GtkSearchBar entry -> editable fixups.

examples/search-bar.c

index cb84e9ce06dd2c81f091ae6ba6527a0d0b202f35..0a42a925ce277fd57056823fa635d918339c3746 100644 (file)
@@ -28,7 +28,7 @@ activate_cb (GtkApplication *app,
   menu_button = gtk_menu_button_new ();
   gtk_container_add (GTK_CONTAINER (box), menu_button);
 
-  gtk_search_bar_connect_entry (GTK_SEARCH_BAR (search_bar), GTK_ENTRY (entry));
+  gtk_search_bar_connect_entry (GTK_SEARCH_BAR (search_bar), GTK_EDITABLE (entry));
   gtk_search_bar_set_key_capture_widget (GTK_SEARCH_BAR (search_bar), window);
 }